package org.lanqiao.ssm.facede.auth.facede.impl;


import java.util.List;

import org.lanqiao.ssm.common.core.facede.base.BaseQueryFacede;
import org.lanqiao.ssm.common.core.service.BaseServiceI;
import org.lanqiao.ssm.facede.auth.facede.ResourceQueryFacedeI;
import org.lanqiao.ssm.facede.auth.model.Resource;
import org.lanqiao.ssm.facede.auth.service.ResourceServiceI;
import org.springframework.stereotype.Component;

@Component("resourceQueryFacede")
public class ResourceQueryFacedeImpl extends BaseQueryFacede<Resource, String>
		implements ResourceQueryFacedeI {

	@javax.annotation.Resource
	private ResourceServiceI resourceService;

	public BaseServiceI<Resource, String> getService() {
		return resourceService;
	}

	@Override
	public List<Resource> findAllTreeNode() {
		
		return resourceService.findAllTreeNode();
	}

	@Override
	public Resource findResourceByProperties(Resource r) {
		
		return resourceService.findResourceByProperties(r);
	}

	@Override
	public List<Resource> treegrid() {
		
		return resourceService.treegrid();
	}

}
